import request from "@/utils/request";

//获取分类树
export function list(query) {
    return request({
        url: '/admin/renovation/Category/getCategoryTree',
        method: 'post',
        params: query
    })
}

//获取所有父级分类
export function getParentCategory(query) {
    return request({
        url: '/admin/renovation/Category/getParentCategory',
        method: 'post',
        params: query
    })
}

//添加分类
export function add(query) {
    return request({
        url: '/admin/renovation/Category/add',
        method: 'post',
        params: query
    })
}

//删除分类
export function del(query) {
    return request({
        url: '/admin/renovation/Category/del',
        method: 'post',
        params: query
    })
}

//编辑分类
export function edit(query) {
    return request({
        url: '/admin/renovation/Category/edit',
        method: 'post',
        params: query
    })
}